export interface ISyncService {
	postMessage(message: {}): Promise<boolean>;
	onRemoteMessage(type: string, handler: (msg: any) => void): void;
	start(localConfig, remoteConfig): void;
	isOwnAction(action): boolean;
}

export let tsISyncService = Symbol.for('ISyncService');

export let SyncUserMessageType = 'SyncUser';
export let SyncConfigMessageType = 'SyncConfig';
export let SyncAdImageMessageType = 'SyncAdImage';
